using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Momentum.Static;
using Momentum.Types;
using System;
using System.Collections.Generic;
using System.Text;

namespace Momentum
{
    class mWorldLoader
    {
        public static void LoadRandomWorld(ContentManager content, ref mWorld world)
        {
            mBox box = new mBox();
            box = content.Load<mBox>("Objects/Crate");
            box.Load(content);
            box.Position = mStaticWorld.Size / 2;
            world.Objects.Add(box);
            mBox box2 = new mBox(box);
            box2.Load(content);
            box2.Position = box.Position - new Vector2(200, 0);
            world.Objects.Add(box2);
            mBox box3 = new mBox(box);
            box3.Load(content);
            box3.Position = box.Position - new Vector2(0, 200);
            world.Objects.Add(box3);
            mBox box4 = new mBox(box);
            box4.Load(content);
            box4.Position = box.Position - new Vector2(-200, 0);
            world.Objects.Add(box4);
            mBox box5 = new mBox(box);
            box5.Load(content);
            box5.Position = box.Position - new Vector2(0, -200);
            world.Objects.Add(box5);
            // -------------
            mBox box6 = new mBox(box);
            box6.Load(content);
            box6.Position = new Vector2(0, 0);
            world.Objects.Add(box6);
            mBox box7 = new mBox(box);
            box7.Load(content);
            box7.Position = new Vector2(200, 0);
            world.Objects.Add(box7);
            mBox box8 = new mBox(box);
            box8.Load(content);
            box8.Position = new Vector2(0, 200);
            world.Objects.Add(box8);
            mBox box9 = new mBox(box);
            box9.Load(content);
            box9.Position = mStaticWorld.Size - new Vector2(200, 0);
            world.Objects.Add(box9);
            mBox box10 = new mBox(box);
            box10.Load(content);
            box10.Position = mStaticWorld.Size - new Vector2(0, 200);
            world.Objects.Add(box10);
        }
    }
}
